<template>
  <div>
    <el-empty v-show="NeedToPaymentList.length===0" description="暂无已签约项目，请等待审核" image-size="300px"
              image="http://localhost:99/Public/file/空空如也.png"></el-empty>
    <div v-show="NeedToPaymentList.length!==0" id="myList" class="myList">
      <ul>
        <li v-for="item in NeedToPaymentList" :key="item.product_id">
          <img :src="$target +item.product_picture" alt/>
          <h2>{{ item.product_name }}</h2>
          <h3>{{ item.product_title }}</h3>
          <p>
            <span>{{ item.product_price }}元</span>
            <!--            <span-->
            <!--                v-show="item.product_price !== item.product_selling_price"-->
            <!--                class="del"-->
            <!--            >{{ item.product_price }}元</span>-->
          </p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "NeedToPayment",
  data() {
    return {
      NeedToPaymentList: []
    }
  },
  mounted() {
    this.getNeedToPayment()
  },
  methods: {
    getNeedToPayment() {
      this.$axios.get("/financial/getNeedToPayment?userId=" + this.$store.getters.getUser.id).then(res => {
        this.NeedToPaymentList = res.data.data
      })
    }
  }
}
</script>

<style scoped>
@import "../assets/css/index.css";

.myList {
  overflow-y: auto;
  margin-left: 0px;
  width: 100%;
}

.myList ul li {
  z-index: 1;
  float: left;
  width: 200px;
  height: 200px;
  padding: 10px 0;
  margin: 5px 0 15px 20px;
  background-color: white;
  -webkit-transition: all 0.2s linear;
  transition: all 0.2s linear;
  position: relative;
}

.myList ul li:hover {
  z-index: 2;
  -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  -webkit-transform: translate3d(0, -2px, 0);
  transform: translate3d(0, -2px, 0);
}

.myList ul li img {
  display: block;
  width: 100px;
  height: 100px;
  background: url(../assets/imgs/placeholder.png) no-repeat 50%;
  margin: 0 auto;
}

.myList ul li h2 {
  margin: 5px 10px 0;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-decoration-line: none;
}

.myList ul li h3 {
  margin: 3px 10px;
  height: 18px;
  font-size: 12px;
  font-weight: 400;
  color: #b0b0b0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-decoration-line: none;
}

.myList ul li p {
  margin: 10px 10px 10px;
  text-align: center;
  color: #023b7c;
}

.myList ul li p .del {
  margin-left: 0.5em;
  color: #b0b0b0;
  text-decoration: line-through;
}

.myList #more {
  text-align: center;
  line-height: 280px;
}

.myList #more a {
  font-size: 18px;
  color: #333;
}

.myList #more a:hover {
  color: #ff6700;
}
</style>